import java.util.Collection;
import java.util.concurrent.locks.ReentrantLock;

/**
 * Created by 1 on 2021/12/4.
 */
public class EasyKeyLock extends ReentrantLock{

    public void unlockAll() {
        Collection<Thread> waits = getQueuedThreads();
        for (Thread t : waits) {
            t.interrupt();
        }
    }
}
